<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	  	<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>管理菜单</title>
		<link href="back/css/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="back/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="back/js/formValidator.js"></script>
		<script>

		
		</script>
		
	</head>

	<body>
		<div style="padding-top: 10px; padding-left: 0px; padding-right: 5px;">
			<form id="moduleForm" name="moduleForm" action="nav_modify" method="post">
				<table class="table" cellspacing="1" cellpadding="2" width="100%" align="center" border="0">

					<tr>
						<td height="44" align="right" class="td_bg">所属模块：</td>
						<td class="td_bg">
							&nbsp;
							<select name="parentId" id="parentId">
								<s:iterator value="navList" id="nl">
									<s:if test="%{#nl.levFlag==0}">
										<s:if test="%{#nl.navId==nav.navId}">
											<option value="<s:property value='#nl.navId' />" selected><s:property value='#nl.title' /></option>
										</s:if>
										<s:else>
											<option value="<s:property value='#nl.navId' />"><s:property value='#nl.title' /></option>
										</s:else>
									</s:if>
									<s:elseif test="%{#nl.levFlag==1}">
										<s:if test="%{#nl.navId==nav.navId}">
											<option value="<s:property value='#nl.navId' />" selected>&nbsp;&nbsp;└&nbsp;<s:property value='#nl.title' /></option>
											
										</s:if>
										<s:else>
											<option value="<s:property value='#nl.navId' />">&nbsp;&nbsp;└&nbsp;<s:property value='#nl.title' /></option>
										</s:else>
									</s:elseif>
									<s:elseif test="%{#nl.levFlag==2}">
										<s:if test="%{#nl.navId==nav.navId}">
											<option value="<s:property value='#nl.navId' />" selected>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├&nbsp;<s:property value='#nl.title' /></option>
										</s:if>
										<s:else>
											<option value="<s:property value='#nl.navId' />">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├&nbsp;<s:property value='#nl.title' /></option>
										</s:else>
									</s:elseif>
									<s:elseif test="%{#nl.levFlag==3}">
										<s:if test="%{#nl.navId==nav.navId}">
											<option value="<s:property value='#nl.navId' />" selected>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├&nbsp;<s:property value='#nl.title' /></option>
										</s:if>
										<s:else>
											<option value="<s:property value='#nl.navId' />">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├&nbsp;<s:property value='#nl.title' /></option>
										</s:else>
									</s:elseif>
								</s:iterator>
							</select>
							&nbsp;<span id="parentIdTip" style="height: 22px;"></span>
						</td>
					</tr>
					
					<tr>
						<td width="13%" height="41" align="right" class="td_bg">模块名称：</td>
						<td class="td_bg" width="87%">&nbsp;
							<input value="<s:property value='nav.title' />" id="name" name="nav.title" style="width: 200px;" tabindex="1" />
							     &nbsp;<span id="nameTip" style="height: 22px;"></span>	
						</td>
					</tr>
					<tr>
						<td width="13%" height="45" align="right" class="td_bg">链接地址：
							<span class="TableRow2"></span>
						</td>
						<td class="td_bg" width="87%">
							&nbsp;
							<input id="url" name="nav.url" style="width: 400px;" value="<s:property value='nav.url' />" />
								&nbsp;<span id="urlTip" style="height: 22px;"></span>	
						</td>
					</tr>
					<tr>
						<td width="13%" height="45" align="right" class="td_bg">备注：
							<span class="TableRow2"></span>
						</td>
						<td class="td_bg" width="87%">
							&nbsp;
							<textarea rows="20" cols="50" name="nav.note"><s:property value="nav.note" /></textarea>	
						</td>
					</tr>
					<tr>
						<td width="13%" height="44" align="right" class="td_bg">
							<span class="TableRow2"><b></b> </span>
						</td>
						<td class="td_bg" width="87%">
							&nbsp;
							<input type="submit" value="更新信息" />
							<input type="reset" value="重新填写" />
						</td>
					</tr>
				</table>
			</form>

		</div>
		
	</body>
</html>


